package com.controller;

import org.springframework.context.ApplicationContext;

import javax.servlet.http.HttpServletRequest;

public class SpringUtil {

    public static ApplicationContext getSpringContext(HttpServletRequest req) {
        return (ApplicationContext) req.getServletContext().getAttribute(InitSpringListener.SPRING_CONTAINER_NAME);
    }
}
